#include <REGX52.H>
#include "Nixie.h"
#include "Timer1.h"
#include "Motor.h"
#include "IR.h"



void main()
{
	Motor_Init();
	IR_Init();
	while(1)
	{
		
		if(IR_GetCommand()==IR_0)
		{
				Motor_SetSpeed(0);
				Nixie(0,0);
		}
		if(IR_GetCommand()==IR_1)
		{
				Motor_SetSpeed(33);
				Nixie(0,1);
		}
		if(IR_GetCommand()==IR_2)
		{
				Motor_SetSpeed(66);
				Nixie(0,2);
		}
		if(IR_GetCommand()==IR_3)
		{
				Motor_SetSpeed(100);
				Nixie(0,3);
		}
			
	}
}

